<!DOCTYPE html>
<html>
<head>
  <title>查询Flyway</title>
  <link rel="stylesheet" type="text/css" href= "{{ url_for('static', filename = 'index.css') }}">
</head> 
<body>
  <h3>Flyway执行失败</h3>
  {% for item in data_failure %}
  {% if item.is_succ %}
  {% else %}
  <div>
    <div class="title">
      <h4 class="failure">实例：{{ item.name }} | DSN: {{ item.dsn }} | 数据表: {{ item.table }}</h4>
    </div>
    <div class="content">
      <table>
        <thead>
          <tr>
            {% for field in item.fields %}
            <td>{{ field }}</td>
            {% endfor %}
        </tr>
        </thead>
        <tbody>
          {% for row in item.content %}
          <tr>
            {% for cell in row %}
            <td>{{ cell }}</td>
            {% endfor %}
          </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>
  </div>
  {% endif %}
  {% endfor %}

  <HR style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" color="black" SIZE=3>

  <h3>Flyway执行成功</h3>
  {% for item in data_success %}
  {% if item.is_succ %}
  <div>
    <div class="title">
      <h3 class="success">实例：{{ item.name }} | DSN: {{ item.dsn }} | 数据表: {{ item.table }} </h3>
    </div>
    <div class="content">无失败记录</div>
  </div>
  {% endif %}
  {% endfor %}
</body>
</html> 